package com.eastfair.questionnaire.file;

import com.eastfair.core.excel.analyze.ExcelAnalyze;
import com.eastfair.core.excel.analyze.ExcelReader;
import com.eastfair.core.excel.analyze.UrlExcelReader;
import com.eastfair.questionnaire.dto.QuestionnaireExcelDTO;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName ExcelAnalyze
 * @Description excel解析
 * @Author yuwx
 * @Date 2021/9/4 15:25
 * @Version 1.0
 **/
@Slf4j
public class ExcelAnalyzeDemo<T> {
    static String url = "https://just-me-1301945752.cos.ap-beijing.myqcloud.com/i%E5%B1%95%E9%80%9A%E9%97%AE%E5%8D%B7%E6%A8%A1%E6%9D%BF.xlsx";

    public static void main(String[] args) {
        ExcelReader reader = new UrlExcelReader();
        ExcelAnalyze analyze = new ExcelAnalyze(reader);
        analyze.analyze(url,  QuestionnaireExcelDTO.class);
    }
}
